home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / haeberli / autopaint / Makefile < prev    next >
Makefile  |  1994-08-01  |  2KB  |  67 lines

  1. #!smake
  2.  
  3. include $(ROOT)/usr/include/make/commondefs
  4.  
  5. LCOPTS  = -xansi -D__STDC__ 
  6. LCINCS    = -I../include -I/usr/include/gl
  7. CFILES    = autopaint.c modcolor.c modpos.c moddir.c misc.c
  8. LLDLIBS    = ../libcan/libcan.a ../libgutil/libgutil.a ../libimage/libimage.a -lgl -lm
  9. CVERSIONS=
  10. LD_QUICKSTART_INFO=
  11. LDIRT    = *.Addrs *.Counts prof.txt lumdir.rgb normdir.rgb spiral.rgb \
  12.         bw.bw blur.bw kern.bw normdir.bw
  13.  
  14. TARGETS = autopaint 
  15.  
  16. # OBJECTS = modcolor.o modpos.o moddir.o misc.o
  17.  
  18. default all: $(TARGETS)
  19.     $(MAKE) -f $(MAKEFILE) $(TARGETS)
  20.  
  21.  
  22. include $(COMMONRULES)
  23.  
  24. demo: autopaint spiral normdir lumdir makedirs
  25.  
  26. $(TARGETS): $(OBJECTS)
  27.     $(CCF) -o $@ $(OBJECTS) $(LDFLAGS)
  28.  
  29. # 3 images are pasted in their sequence of operations:
  30. # makes brush strokes that are in a sprial pattern.  cone.bw controls the
  31. # brush stroke direction
  32. spiral:
  33.     ipaste in.rgb
  34.     ipaste cone.bw
  35.     autopaint in.rgb spiral.rgb -m 600 600 -c papers/paper.rgb -b brush.bw \
  36.         -n 0.3 -s 20.0:20.0 -di cone.bw -d 45.0:20.0 -a 0.9:0.2 -q 1.5
  37.     ipaste spiral.rgb
  38.  
  39. # 4 images are pasted in their sequence of operations:
  40. # uses the normal of the surface to control the brush stroke direction
  41. normdir:
  42.     ipaste norm.rgb
  43.     ../imgtools/normtodir norm.rgb normdir.bw 1
  44.     ipaste normdir.bw
  45.     ipaste save.rgb
  46.     autopaint save.rgb normdir.rgb -v -m 600 600 -c papers/paper.rgb \
  47.     -b longbrush.bw -n 0.3 -s 30.0:10.0 -di dir.bw -d 0.0:20.0 \
  48.     -a 0.9:0.2 -q 4.0
  49. #    rm normdir.bw
  50.     ipaste normdir.rgb
  51.  
  52. # 3 images are pasted in their sequence of operations:
  53. #uses the direction of the gradient of the luminence to control the
  54. #brush stroke direction
  55. lumdir:
  56.     tobw in.rgb bw.bw
  57.     ../imgtools/blur bw.bw blur.bw 100
  58.     ipaste blur.bw
  59. #    rm bw.bw
  60.     ../imgtools/conimg kern.bw 3 3 255
  61.     ../imgtools/convolve blur.bw dir.bw kern.bw -g
  62. #    rm blur.bw kern.bw
  63.     ipaste dir.bw
  64.     autopaint in.rgb lumdir.rgb -m 600 600 -c papers/paper.rgb -b brush.bw \
  65.         -n 0.2 -s 36.0:24.0 -di dir.bw -d 0.0:10.0 -a 0.9:0.2 -q 1.8
  66.     ipaste lumdir.rgb
  67.